package com.njwb.io;

/**
 * Description: 类的描述
 * Author: yuandeyin@itany.com
 * Date: 2025-08-06 10:08
 * Version: 1.0
 */
public class RedColorShapeDecorator extends ShapeDecorator{
    public RedColorShapeDecorator(Shape shape) {
        super(shape);
    }

    //新增方法
    private void setColor(){
        System.out.println("添加红色");
    }

    @Override
    public void draw() {
        setColor();
        super.draw();
    }
}
